package com.cx.service.lq.Impl;

import com.cx.mapper.GamelibraryMapper;
import com.cx.pojo.GameInfo;
import com.cx.pojo.Gamelibrary;
import com.cx.service.lq.GamelibraryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GamelibraryServiceImpl implements GamelibraryService {
    @Autowired
    GamelibraryMapper gamelibraryMapper;
    @Override
    public List<GameInfo> selectByUserId(int userId) {
        List<GameInfo> gameInfos =gamelibraryMapper.selectByUserId(userId);
        return gameInfos;
    }

    @Override
    public List<GameInfo> selectByName(int userId, String name) {
        List<GameInfo> gameInfos =gamelibraryMapper.selectByName(userId,name);

        return gameInfos;
    }
}
